<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<meta http-equiv="x-ua-compatible" content="ie=7" />
		<title>投票操作</title>
		<script type="text/javascript" src="../../dwr/engine.js"></script>
		<script type="text/javascript" src="../../lovejes/lovejes.js"></script>
		<script type="text/javascript" src="../../lovejes/jesflydiv/jesflydiv.js"></script>
		<script type="text/javascript" src="../../lovejes/My97DatePicker/WdatePicker.js"></script>
		<script type="text/javascript" src="../js/jes_sys.js"></script>
		<script type="text/javascript" src="../js/jesvote.js"></script>
		<link href="../../jesacl/themes/default/css/config_1.css" rel="stylesheet" type="text/css">
	</head>
	<body onload="Jes.VoteOp.init();"><form name="form1" id="form1" method="post" action="">
	<!-- button begin -->
	<table cellpadding="0" cellspacing="0" border="0" width="100%">
		<tr>
			<td style="padding-bottom: 2px;" id="op_button">
				<input title="Save [Alt+S]" accessKey="S" class="button" type="button" id="add" name="add" value="  保存  " >
				<input title="Close [Alt+C]" accessKey="C" class="button" type="button" id="close" name="close" value="  关闭  ">
			</td>
			<td align="right" nowrap><span class="notnull">*</span> 必须</td>
			<td align='right'></td>
		</tr>
	</table>
	<!-- button end -->
	<!-- op_html begin -->
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
		<tr>
			<td>
				<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table1">
					<!--
					<tr>
						<th align="left" colspan="4"><h3><img src="../../jesacl/themes/default/images/Contacts.gif" width="16" height="16"><span id="op_title">新增公告</span></h3></th>
					</tr>
					-->
					<tr>
						<td width="10%">标题:</td>
						<td>
							<input type="text" title="标题" id="subject" name="subject" size="45" notnull><span class="notnull">*</span>
							<span id="info" style="color:#ff00ff"></span>
	          			</td>
					</tr>
					<tr>
						<td>说明:</td>
						<td><textarea title="说明" notnull id="content" name="content" cols="55" rows="5" notnull></textarea><span class="notnull">*</span></td>
					</tr>
					<tr>
						<td>开始/截止时间:</td>
						<td>
						<input type="text" title="开始时间" id="begtime" name="begtime" dataType="date" class="Wdate" onfocus="WdatePicker({skin:'whyGreen',isShowClear:false,readOnly:true,minDate:'%y-%M-%d',maxDate:'#F{$dp.$D(\'endtime\')}'})" size="25"></br>
						<input type="text" title="截止时间" id="endtime" name="endtime" dataType="date" class="Wdate" onfocus="WdatePicker({skin:'whyGreen',isShowClear:false,readOnly:true,minDate:'#F{$dp.$D(\'begtime\')}'})" size="25">
						</td>
					</tr>
					<tr>
						<td ></td>
						<td><input class="button" type="button" id="add_item" name="add_item" value="添加问题" onclick="Jes.VoteOp.addItem();"></td>
					</tr>
					<tr>
					  <td>&nbsp;</td>
					  <td>
						<!--hidden-->
						<input type="hidden" title="id" id="id" name="id">
						<input type="hidden" title="userid" id="userid" name="userid">
						<input type="hidden" title="status" id="status" name="status" value="0">
						<input type="hidden" title="votenum" id="votenum" name="votenum" value="0">
						<input type="hidden" title="recordtime" id="recordtime" name="recordtime" dataType="time" value="new">
					  </td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
	<div id="item" style="margin:5px">
		<!--
	
		-->
	</div>
	<!-- op_html end -->
</form>
<form name="form2" id="form2" method="post" action="">
<div style='display:none' id='item_hide'>
			<div style="float:right;"><img src="../../lovejes/images/op/c17-1.gif" title="删除题目" style="cursor:hand;" onclick="Jes.remove(this.parentNode.parentNode);" onmouseover="this.src=this.src.replace('-1','-2');" onmouseout="this.src=this.src.replace('-2','-1');"></div>
			<div>
				题目:<input type="text" title="题目" id="title" name="title" size="45" notnull><span class="notnull">*</span>
			</div>
			<div>
			问题类型:<select title="问题类型" notnull id="type" name="type" class="input" onchange="Jes.VoteOp.changeType(this);">
			<option value="1">单选</option><option value="2">多选</option>
			<option value="20">填空题</option>
				</select><span class="notnull">*</span>
				排序: <input type="text" title="排序" id="idx" name="idx" size="5">
			</div>
			<div>
				答案分组:
				<select title="答案分组" notnull id="groupid" name="groupid" class="input" onchange="Jes.VoteOp.showGroupItem(this);"><option value="">--------------------------</option></select><span class="notnull">*</span>
				<input type="button" id="add_group" name="add_group" value="新增组" onclick="Jes.VoteOp.opGroup(this,1);">
				<input type="button" id="edit_group" name="edit_group" value="编辑组" onclick="Jes.VoteOp.opGroup(this,2);">
				<input type="button" id="del_group" name="del_group" value="删除组" onclick="Jes.VoteOp.opGroup(this,3);">
				<!--<input type="hidden" title="voteitemid" id="voteitemid" name="voteitemid">-->
				<div></div>
			</div>
</div>
</form>
<!-----------------------------------------------答案分组div begin------------------------------------------------------------------>
<form name="form3" id="form3" method="post" action="">
<div id="groupdiv" name="groupdiv" style="display:none;position:absolute;width:500px;z-index:999">
<table cellSpacing="0" cellPadding="0" align="center" border="0">
	<tbody>
		<tr>
			<td width="17"><img height="9" src="../../lovejes/images/flydiv/f1.gif" width="17"></td>
			<td width="100%" background="../../lovejes/images/flydiv/ft.gif"><img height="9" src="../../lovejes/images/flydiv/ft.gif" width="1"></td>
			<td><img height="9" src="../../lovejes/images/flydiv/f2.gif" width="12"></td>
		</tr>
		<tr>
			<td background="../../lovejes/images/flydiv/fl.gif"></td>
			<td>
				<table cellSpacing="1" cellPadding="3" width="100%" bgcolor="#e0e0e0" border="0">
					<tr bgcolor="#ffffff">
						<td width="15%"><strong>组名:</strong></td>
						<td width="85%">
							<input type="text" title="组名" id="group.groupname" name="group.groupname" size="35" notnull><span class="notnull">*</span>
							公有<input type="checkbox" class="checkbox" title="公有" id="group.ispub" name="group.ispub" value="1" defVal="0">
							<input type="hidden" title="group.id" id="group.id" name="group.id">
							<input type="button" id="add_groupitem" name="add_groupitem" value="添加答案" onclick="Jes.VoteOp.addGroupItem();">
						</td>
					</tr>
					<tbody id="groupitem">
						<!--
						<tr bgcolor="#ffffff">
							<td><strong>答案:</strong></td>
							<td><input type="text" title="答案" id="itemname" name="itemname" size="20" notnull><span class="notnull">*</span>
							<strong>排序:</strong><input type="text" title="排序" id="idx" name="idx" size="5">
							<input type="button" id="del_groupitem" name="del_groupitem" value="删除" onclick="Jes.VoteOp.delGroupItem(this);">
							</td>
						</tr>
						-->
					</tbody>
				</table>
				<div align="center" style="padding-top:10px;background:#fff;">
					<input type="button" id="q" name="q" value="确 定" class="button_blue" onclick="Jes.VoteOp.saveGroupItem();">
					<input type="button" id="closeFlv" name="closeFlv" value="关 闭" class="button_blue" onclick="Jes.FlyDiv.hide();">
				<div>
			</td>
			<td background="../../lovejes/images/flydiv/fr.gif"></td>
		</tr>
		<tr>
			<td><img height="17" src="../../lovejes/images/flydiv/f4.gif" width="17"></td>
			<td background="../../lovejes/images/flydiv/fb.gif"><img height="17" src="../../lovejes/images/flydiv/fb.gif" width="1"></td>
			<td width="12"><img height="17" src="../../lovejes/images/flydiv/f3.gif" width="12"></td>
		</tr>
	</tbody>
</table>
</div>
</form>
<!-----------------------------------------------图片编辑div end------------------------------------------------------------------>
	</body>
</html>